]> dgit.raspbian.org Git - gnome-shell.git/commit
animation: Scale animation actor for HiDPI
authorDaniel García Moreno <dani@danigm.net>
Fri, 17 Jan 2020 09:12:52 +0000 (10:12 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Thu, 30 Jan 2020 14:28:45 +0000 (14:28 +0000)
commit5b2c604fe4f6d78727fff4d35224f5e13e8fc421
treea2c32c9ccf3f7c94b671942209f73dafff0ffa0d
parentdb9ef11f2893eae0905b091be361ff5417156beb
animation: Scale animation actor for HiDPI

The Animation class inherits from St.Bin and manages the scale factor
in the image loading, but the widget size doesn't change and doesn't
depend on the scale factor so when the scale factor is different
from 1 the widget size doesn't match the image size.

This patch resizes the Animation widget using the scale factor so the
widget will match the animation images sizes.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1746
js/ui/animation.js